package org.lora.biz.workflow.engines.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.lora.biz.workflow.annotation.RunTimeResource;
import org.lora.biz.workflow.engines.entity.ProcessInstance;
import org.lora.biz.workflow.engines.entity.ProcessInstanceExample;

@RunTimeResource
public interface ProcessInstanceMapper {
    int countByExample(ProcessInstanceExample example);

    int deleteByExample(ProcessInstanceExample example);

    int insert(ProcessInstance record);

    int insertSelective(ProcessInstance record);

    List<ProcessInstance> selectByExample(ProcessInstanceExample example);

    int updateByExampleSelective(@Param("record") ProcessInstance record, @Param("example") ProcessInstanceExample example);

    int updateByExample(@Param("record") ProcessInstance record, @Param("example") ProcessInstanceExample example);
}